﻿<%@ Page Language="C#" MasterPageFile="~/home.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="cpassword.aspx.cs" Inherits="cpassword" Title="Change Password" %>

<asp:Content ContentPlaceHolderID="head" Runat="Server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="200" valign="top" bgcolor="#e8eaed">
                <asp:Panel ID="panel_menulist" Width="100%" runat="server"></asp:Panel>
            </td>
            <td valign="top" style="padding-left:10px">
                <fieldset>
                    <legend style="font-size:15px;color:#F00;font-weight:bold">Change password</legend>
                    <div style="font-size: 15px; color: #F00; padding-top: 10px;text-align:center">
                        <b><asp:Label ID="lbl_msg" runat="server" Text=""></asp:Label></b>
                    </div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="vl_cp" />
                    <table width="100%" border="0" cellspacing="5" style="font-size: 18px">
                        <tr>
                            <td width="170" align="right">New Password</td>
                            <td>
                                <asp:TextBox ID="txt_newpassword" class="input_text_view" TextMode="Password" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txt_password"
                                    ErrorMessage="New password is not empty." ValidationGroup="vl_cp">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Old Password</td>
                            <td>
                                <asp:TextBox ID="txt_password" class="input_text_view" TextMode="Password" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txt_password"
                                    ErrorMessage="Old password is not empty." ValidationGroup="vl_cp">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">Confirm Password</td>
                            <td>
                                <asp:TextBox ID="txt_cpassword" class="input_text_view" TextMode="Password" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_cpassword"
                                    ErrorMessage="Confirm old password is not empty." ValidationGroup="vl_cp">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_password"
                                    ControlToValidate="txt_cpassword" ErrorMessage="Confirm password invalid." ValidationGroup="vl_cp">*</asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="btn_changepass" ValidationGroup="vl_cp" class="btnWhite" 
                                    runat="server" Text="Save" onclick="btn_changepass_Click" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
</asp:Content>